package cn.ll.service;

import java.util.List;

import cn.ll.po.UserRole;
import cn.ll.po.UserRoleDAO;

public class UserRoleService {
	private UserRoleDAO	userRoleDAO = null;
	
	public void save(UserRole userRole){
		userRoleDAO.save(userRole);
	}
	
	public void update(UserRole userRole){
		userRoleDAO.update(userRole);
	}
	
	public List<UserRole> findByUid(String uid){
		List<UserRole> list = userRoleDAO.findByUid(uid);
		return list;
	}
	
	public void delete(UserRole userRole){
		userRoleDAO.delete(userRole);
	}
	
	public UserRoleDAO getUserRoleDAO() {
		return userRoleDAO;
	}

	public void setUserRoleDAO(UserRoleDAO userRoleDAO) {
		this.userRoleDAO = userRoleDAO;
	}
	
}
